﻿@model EasyHome.Models.TablaDato

<div class="modal-header">
    <button type="button" class="close" data-dismiss="modal" aria-hidden="true">&times;</button>
    <h4 class="modal-title">Crear - Dato</h4>
</div>

@using (Html.BeginForm("Create", "TablaDato", FormMethod.Post, new { @class = "modal-form" }))
{
    @Html.AntiForgeryToken()
    @Html.ValidationSummary(true)
    <div class="form-horizontal">
        <div class="modal-body">
            <div class="form-group">
                @Html.LabelFor(model => model.Descripcion, new { @class = "control-label col-md-2" })
                <div class="col-md-10">
                    @Html.TextBoxFor(model => model.Descripcion, new { @class = "form-control" })
                    @Html.ValidationMessageFor(model => model.Descripcion)
                </div>
            </div>
            <div class="form-group">
                @Html.LabelFor(model => model.DescripcionAbreviada, new { @class = "control-label col-md-2" })
                <div class="col-md-10">
                    @Html.TextBoxFor(model => model.DescripcionAbreviada, new { @class = "form-control" })
                    @Html.ValidationMessageFor(model => model.DescripcionAbreviada)
                </div>
            </div>
            <div class="form-group">
                @Html.LabelFor(model => model.TablaGenericaId, new { @class = "control-label col-md-2" })
                <div class="col-md-10">
                    @Html.DropDownList("TablaGenericaId", null, new { @class = "form-control" })
                    @Html.ValidationMessageFor(model => model.TablaGenericaId)
                </div>
            </div>
            <div class="form-group">
                @Html.LabelFor(model => model.AdicionalString, new { @class = "control-label col-md-2" })

                <div class="col-md-10">
                    <label class="checkbox-inline">
                        @Html.CheckBox("AdicionalString") String
                    </label>
                    <label class="checkbox-inline">
                        @Html.CheckBox("AdicionalNumber") Number
                    </label>
                
                    <label class="checkbox-inline">
                        @Html.CheckBox("AdicionalBoolean") Boolean
                    </label>
                    <label class="checkbox-inline">
                        @Html.CheckBox("AdicionalDate") Date
                    </label>
                </div>
            </div>
        </div>
    </div>
    <div class="modal-footer">
        <button class="btn btn-primary" type="submit">Save</button>
        <button class="btn" data-dismiss="modal" aria-hidden="true">Close</button>
    </div>
}

@section Scripts {
    @Scripts.Render("~/bundles/jqueryval")
}
